<template>
	<div>
		<h1 class="school">你好我是School组件</h1>
		<h1>学校名字是：{{name}}</h1>
		<h1>学校地址是：{{address}}</h1>
		<button @click="demo">点我提示信息</button>
	</div>
</template>

<script>
	export default {
		data(){
			return {
				name:'尚硅谷',
				address:'北七家镇'
			}
		},
		methods: {
			demo(){
				alert('我是一些信息')
			}
		},
	}
</script>

<style>
	.school{
		background-color: skyblue;
	}
</style>